#{extends 'main.html' /}
#{set title:'Salao Tads' /}
#{stylesheet 'style.css'/}


<head>
<h3><center>Agendar Servico</center></h3>
</head>
<body >
<div id="Content"> <!--Container -->

	<div id="Header">
     
   		<div id="menuforms">
      		<table border = "1" color ="red"><tr>
      		
 <form name="Data"  action = "data_agendar">
Escolha 1 Data no Corrente Mes
<br>
<select name="Data">
			<optgroup label="Datas">
				<option>Data</option>
				
					<option value="">${data}</option>
			
			</optgroup>
		</select>
</form>
</tr><tr>
<br><br>
<form name="Servico" action = "funcionario_agendar">

Escolha 1 Servico
<br>
<select name="ids_servico">
			<optgroup label="Servicos">
				<option>Servico</option>
				#{list items:serv, as:'p'}
					<option value="${p.id}">${p.nome},  R$ = ${p.valor}</option>
				#{/list}
			</optgroup>
		</select>

<input type="submit"  value ="add"/>
</form></tr><tr>
<br><br>
Escolha um Funcionario
<br>
<form name="Funcionario" action = "">

<select name="id_funcionario">
			<optgroup label="Funcionario">
				<option>Funcionario</option>
				#{list items:Lista_Func_aux, as:'n'}
					<option value="${n.id}">${n.nome} </option>
				#{/list}
			</optgroup>
		</select>
<input type="submit"  value ="add"/>
</form></tr><tr>

<br><br>
Escolha um Horario
<br>
<form name="Horario" action = "">

<select name="id_hora">
			<optgroup label="Horario">
				<option>Horarios</option>
				#{list items:horas, as:'n'}
					<option value="${n.id}">${n.hora} </option>
				#{/list}
			</optgroup>
		</select>

<input type="submit"  value ="add"/>
</form></tr><br>
<tr>
<form name="BD_agendar" action = "">
So salve apos ter realizado a escolha de todos os servicos
que deseja Agendar<p>
Digite o Nome do Cliente<input type ="text" name="nome">
<input type="submit"  value ="Salvar"/>
</form>
<h3 color="red"> Total : ${valor_total}</h3>

</tr>
</table>
        </ul>
</div>    
        
     <div id="footer">
 <li> 
   <div align="center"><a href="/secure/logout">Encerrar Sessao</a></div>
 </li> 
</div>

</body>
</html>